import random

def generator():
    date_list = []
    for i in range(0,20):
        date_list.append(random.randint(0,10000))
    return date_list

def insert_sort(date_list):
    lenght = len(date_list)
    for i in range(1,lenght):
        key = date_list[i]
        j = i - 1
        while j >= 0:
            if date_list[j] > key:
                date_list[j+1] = date_list[j]
                date_list[j] = key
            j = j - 1
    return date_list

if __name__ == '__main__':
    print(generator())
    print(insert_sort(generator()))